}
Command.Sync.prepMerge
- Command.Sync.seek' o'
- where
- o'
- | Command.Sync.contentOption o == Nothing
- && Command.Sync.noContentOption o == Nothing =
- o { Command.Sync.contentOption = Just True }
- | otherwise = o
+ Command.Sync.seek' o
( long "not-only-annex"
<> help "operate on git branches as well as annex"
)
- <*> unlessmode [SyncMode] False (switch
- ( long "commit"
- <> help "commit changes to git"
- ))
+ <*> case mode of
+ SyncMode -> switch
+ ( long "commit"
+ <> help "commit changes to git"
+ )
+ PushMode -> pure False
+ PullMode -> pure False
+ AssistMode -> pure True
<*> unlessmode [SyncMode] True (switch
( long "no-commit"
<> help "avoid git commit"